Skip to content

Conversation

masato-hi
Copy link

@masato-hi masato-hi commented Mar 24, 2025

What I did.

Encode variables to UTF-8 when decoding JSON.
Ruby's ENV variable is ASCII-8BIT, so force_encoding is required when accepting values passed via ENV.

What I didn't do.

Unicode Escape when encoding.
I didn't do this because the decoding process only supports Unicode up to 4 bytes.

Related.

#735

1ed51d0#diff-c105c6f17eabaabdafb33fb6b9dccbaaf06e70daba153d42e3e72741a7ff6eccL16

@masato-hi masato-hi force-pushed the fix-utf8-json-decode branch from 8676beb to b545688 Compare March 24, 2025 07:09
@masato-hi masato-hi force-pushed the fix-utf8-json-decode branch from b545688 to 1f225fc Compare March 25, 2025 02:26
@rafaelfranca
Copy link
Member

Fixed by #738

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants